package org.tea.inventory.db.dao;

import java.util.List;

import org.tea.inventory.db.domain.Admin;
import org.apache.ibatis.annotations.Param;

public interface AdminMapper {

    /**
     * TODO ~~~~
     */
    List<Admin> selectByExample(Admin example);

    /**
     * TODO ~~~~
     */
    List<Admin> selectByExampleSelective(@Param("example") Admin example, @Param("selective") Admin.Column ... selective);

    /**
     * TODO ~~~~
     */
    Admin selectByPrimaryKey(Integer id);

    /**
     * TODO ~~~~
     */
    Admin selectByPrimaryKeySelective(@Param("id") Integer id, @Param("selective") Admin.Column ... selective);

    /**
     * TODO ~~~~
     */
    long countByExample(Admin example);

    /**
     * TODO ~~~~
     */
    int insertSelective(Admin record);

    /**
     * TODO ~~~~
     */
    int updateByPrimaryKey(Admin record);

    /**
     * TODO ~~~~
     */
    int updateByPrimaryKeySelective(Admin record);
    
    /**
     * TODO ~~~~
     */
	List<Admin> findByIdList(@Param("ids") List ids, @Param("selective") Admin.Column ... selective);

    int findUserName(@Param("userName") String userName);
}